<!DOCTYPE html>
<html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>G4F - Additional Requirements</title>
    <link rel="apple-touch-icon" sizes="180x180" href="/dist/img/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/dist/img/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/dist/img/favicon-16x16.png">
    <link rel="manifest" href="/dist/img/site.webmanifest">
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light-74231a1f3bbb.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark-8a995f0bacd4.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-primitives-225433424a87.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-b8b91660c29d.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-205098e9fedd.css" />
    <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-177d21388df8.css" />
    <style>
        :root {
            --colour-1: #000000;
            --colour-2: #ccc;
            --colour-3: #e4d4ff;
            --colour-4: #f0f0f0;
            --colour-5: #181818;
            --colour-6: #242424;
            --accent: #8b3dff;
            --gradient: #1a1a1a;
            --background: #16101b;
            --size: 70vw;
            --top: 50%;
            --blur: 40px;
            --opacity: 0.6;
        }

        /* Body and text color */
        body {
            height: 100vh;
            margin: 0;
            padding: 0;
        }

        .hidden {
            display: none;
        }

        .container-lg {
            margin: 0 auto;
            padding: 8px;
        }

        @media only screen and (min-width: 40em) {
            .container-lg {
                max-width: 84%;
            }
        }
    </style>
</head>
<body>
    <article class="markdown-body entry-content container-lg" itemprop="text"><div class="markdown-heading"><h2 class="heading-element">G4F - Additional Requirements</h2><a id="user-content-g4f---additional-requirements" class="anchor" aria-label="Permalink: G4F - Additional Requirements" href="#g4f---additional-requirements"><span aria-hidden="true" class="octicon octicon-link"></span></a></div>
<div class="markdown-heading"><h4 class="heading-element">Introduction</h4><a id="user-content-introduction" class="anchor" aria-label="Permalink: Introduction" href="#introduction"><span aria-hidden="true" class="octicon octicon-link"></span></a></div>
<p>You can install requirements partially or completely. So G4F can be used as you wish. You have the following options for this:</p>
<div class="markdown-heading"><h4 class="heading-element">Options</h4><a id="user-content-options" class="anchor" aria-label="Permalink: Options" href="#options"><span aria-hidden="true" class="octicon octicon-link"></span></a></div>
<p>Install g4f with all possible dependencies:</p>
<pre><code>pip install -U g4f[all]
</code></pre>
<p>Install g4f with slim dependencies (without Browser):</p>
<pre><code>pip install -U g4f[slim]
</code></pre>
<p>Install required packages for the Interference API:</p>
<pre><code>pip install -U g4f[api]
</code></pre>
<p>Install required packages for the Web UI:</p>
<pre><code>pip install -U g4f[gui]
</code></pre>
<p>Install required packages for uploading / generating images:</p>
<pre><code>pip install -U g4f[image]
</code></pre>
<p>Install required package for proxy support with aiohttp:</p>
<pre><code>pip install -U aiohttp_socks
</code></pre>
<p>Install required package for loading cookies from browser:</p>
<pre><code>pip install browser_cookie3
</code></pre>
<p>Install all packages and uninstall this package for disabling the browser support:</p>
<pre><code>pip uninstall nodriver 
</code></pre>
<hr>
<p><a href="/docs/">Return to Documentation</a></p>
</article>
</body>
</html>